Java vs. PHP: Security Implications of Language Choice for Web Applications
نویسندگان
چکیده
While Java and PHP are two of the most popular languages for open source web applications found at freshmeat.net, Java has had a much better security reputation than PHP. In this paper, we examine whether that reputation is deserved. We studied whether the variation in vulnerability density is greater between languages or between different applications written in a single language by comparing eleven open source web applications written in Java with fourteen such applications written in PHP. To compare the languages, we created a Common Vulnerability Metric (CVM), which is the count of four vulnerability types common to both languages. Common Vulnerability Density (CVD) is CVM normalized by code size. We measured CVD for two revisions of each project, one from 2006 and the other from 2008. CVD values were higher for the aggregate PHP code base than the Java code base, but PHP had a better rate of improvement, with a decline from 6.25 to 2.36 vulnerabilities/KLOC compared to 1.15 to 0.63 in Java. These changes arose from an increase in code size in both languages and a decrease in vulnerabilities in PHP. The variation between projects was greater than the variation between languages, ranging from 0.52 to 14.39 for Java and 0.03 to 121.36 in PHP for 2006. We used security and software metrics to examine the sources of difference between projects.
منابع مشابه
Idea: Java vs. PHP: Security Implications of Language Choice for Web Applications
While Java and PHP are two of the most popular languages for open source web applications found at freshmeat.net, Java has had a much better security reputation than PHP. In this paper, we examine whether that reputation is deserved. We studied whether the variation in vulnerability density is greater between languages or between different applications written in a single language by comparing ...
متن کاملAnalysis of Compute Vs Retrieve Intensive Web Applications and Its Impact On The Performance Of A Web Server
-------------------------------------------------------------------ABSTRACT-------------------------------------------------------------The World Wide Web (WWW) has undergone remarkable change over the past few years, placing substantially heavy load on Web servers. Today’s web servers host web applications that demand high computational resources. Also some applications require heavy database ...
متن کاملA dynamic technique for enhancing the security and privacy of web applications
Web application security and privacy became a central concern among the security community. The problems that are faced once an application is compromised necessarily demands special attention. The emerging programming languages, which allow unexperienced users to quickly develop applications, still fail to introduce mechanisms for preventing the aforementioned attacks. We introduce a technique...
متن کاملNews: Not in the Script--News of Java's Demise Is Premature
Java is receiving plenty of negative attention lately. Though barely a decade old, the world's most popular programming language is being called bloated, too complicated for the world of quickly written and deployed Web applications, and ripe for dethronement by scripting languages. Forum flames regarding choice of language or development environment are nothing new among developers and analyst...
متن کاملSqlas: Tool to Detect and Prevent Attacks in Php Web Applications
Web applications become an important part of our daily lives. Many other activities are relay on the functionality and security of these applications. Web application injection attacks, such as SQL injection (SQLIA), Cross-Site Scripting (XSS) and Cross-Site Request Forgery (XSRF) are major threats to the security of the Web Applications. Most of the methods are focused on detection and prevent...
متن کامل